import 'package:flutter/material.dart';


import 'dart:convert';

import 'dart:convert';

class Base64Img extends StatelessWidget {
  const Base64Img({super.key, required this.imgCode, required this.circleBorderRadius, required this.scale});

  final String imgCode;
  final double circleBorderRadius;
  final double scale;

  @override
  Widget build(BuildContext context) {
    return ClipRRect(
      borderRadius: BorderRadius.circular(circleBorderRadius),
      child: Image.memory(
        Base64Decoder().convert(imgCode.split(",")[1]),
        scale: scale,
      ),
    );
  }
}

